home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 1740 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.5 KB

  1. Path: sundog.tiac.net!usenet
  2. From: amoreira@nine.com (Alberto C Moreira)
  3. Newsgroups: comp.edu,comp.lang.c,comp.lang.c++
  4. Subject: Re: C or C++ for a 14-year old?
  5. Date: Tue, 16 Jan 1996 16:12:50 GMT
  6. Organization: Number Nine Visual Technology
  7. Message-ID: <4dgij2$su5@sundog.tiac.net>
  8. References: <4b30ld$lp2$1@mhafc.production.compuserve.com> <4d4jeh$fv1@wombat.melbpc.org.au> <w+PJjMD4ED1aLz3@dexam.another.gun.de> <4ddsg4$p4e@sundog.tiac.net> <9601152053.AA06670@dxmint.cern.ch>
  9. NNTP-Posting-Host: 205.161.17.61
  10. X-Newsreader: Forte Free Agent 1.0.82
  11.  
  12. Dan Pop <danpop@mail.cern.ch> wrote:
  13.  
  14. >amoreira@nine.com (Alberto C Moreira) writes:
  15.  
  16. >>Still, there's no worse restriction on a programmer than not to be
  17. >>able to talk directly to the hardware. 
  18.  
  19. [snip...]
  20.  
  21.  
  22. >The point is that with a good OS you don't have to talk directly to the
  23. >hardware: this is the job of the OS, not of the application.
  24.  
  25.  
  26. That OS is still to be born. 
  27.  
  28.  
  29. >Direct access to the hardware within an application is needed only when
  30. >the underlying OS doesn't provide the functionality needed or when it
  31. >provides it in a horribly inefficient way.
  32.  
  33.  
  34. Which is the case with 100% of the OS's I worked with. Neither OS2 or
  35. Unix or Windows or NT or Win95 gets even closer to the performance I
  36. can extract from my 3D graphics board going direct to the hardware.
  37.  
  38. Why do you think the best games run under DOS ? Why is Microsoft
  39. wooing games developers so intensely with their "Direct Whatever"
  40. APIs that give programmers direct access to a virtualized hardware-
  41. level device ? 
  42.  
  43.  
  44. >Programs which access the hardware directly: 
  45.  
  46. >1. Are inherently non-portable.
  47.  
  48.  
  49. Big deal. The PC is a hardware standard; programs should work on
  50. a PC independent of OS. What's non-portable is the tons of APIs
  51. and little supervisor services that stand in the way. 
  52.  
  53.  
  54. >2. Cannot be safely used in a multitasking environment.
  55.  
  56.  
  57. Rubbish. Windows has VDDs for that, and it works fine. Programs
  58. that need access to the hardware can easily be written to use a
  59. serializing layer - like the VDD. It is a myth that i/o code
  60. needs to be trusted code and run in ring 0 to allow multitasking.
  61. The best real-timers I ever worked with ran i/o at user level, which
  62. is where it belongs.
  63.  
  64.  
  65. >Of course, these points are non-issues for the MSDOS programmer.
  66.  
  67.  
  68. These are non-issues to personal computers.  And that's what DOS,
  69. Windows and OS/2 are supposed to be: personal computer OS's.
  70.  
  71. As for Unix, multi-user actually stays in people's ways; it helps
  72. nothing in a personal computer environment.
  73.  
  74.  
  75.                  _alberto_
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.